This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Yes, the XPages sessionScope is the same as the JSF sessionScope.
It is available through these JSF APIs:
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String,Object> sessionScope =facesContext.getExternalContext().getSessionMap();
Your example was calling ExternalContext.getRequestMap() which is the requestScope.
You can also resolve any of the global variables using the JSF VariableResolver to look up the variable name:
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String,Object> sessionScope = (Map<String,Object>)
facesContext.getApplication().getVariableResolver().resolveVariable(facesContext,
"sessionScope");
Feedback response number MKEE825DRM created by ~Lex Feztookonyikle on 01/28/2010